#ifndef STATIONVIEW_H
#define STATIONVIEW_H

#include "viewobject.h"
#include <qdom.h>

typedef struct TerminalViewParam
{
    QString path;

    TerminalViewParam()
    {
        path = "";
    }
}TerminalViewParam;


class TerminalView : public ViewObject
{
    Q_OBJECT
public:
    static int m_id;
    Q_INVOKABLE explicit TerminalView(QWidget *parent = 0);
    ~TerminalView();

    void ShowObject();

    void GetAttribute(std::string&);

    void SetAttribute(std::string);

    void ParseXML(QDomElement* );

    void PacketXML(QDomElement*);

    void loadfile_interval(QString, int, QString);

    QString FindCss(QString prefix, QString url_origin, QString url_with_suffix);
    QString FindHqt(QString prefix, QString url);

private:

    TerminalViewParam *m_paramTerminalView;
};

#endif // STATIONVIEW_H
